package org.dromara.quick.chat.model.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.dromara.quick.chat.domain.ImChatConversation;

/**
 * 最近会话表实体类
 * @Author: Stars
 * @Date: 2025/5/18 21:12
 */
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
@AutoMapper(target = ImChatConversation.class)
public class ImChatConversationReadMaxSeqBO {

    /**
     * 当前用户id
     */
    private Long senderId;

    /**
     * 接受者id
     */
    @NotNull(message = "接收者id不能为空")
    private Long receiverId;

    /**
     * 类型
     */
    @NotNull(message = "频道类型不能为空")
    private Integer channelType;

    /**
     * 阅读最大消息id
     */
    private Long messageSeq;

    /**
     * 删除消息id
     */
    private Long deleteMessageSeq;
}
